package org.poptest.junit;

import org.junit.runner.notification.RunListener;

/**
* @author Alan Roche
*         Date: 01/02/11
*         Time: 23:15
*/
public class VerifiableListener extends RunListener {
    private static boolean runStarted = false;
    private static boolean testStarted = false;

    public void testRunStarted(org.junit.runner.Description description) throws Exception {
        runStarted = true;
    }
    public void testStarted(org.junit.runner.Description description) throws Exception {
        testStarted = true;
    }

    public static boolean isRunStarted() {
        return runStarted;
    }

    public static boolean isTestStarted() {
        return testStarted;
    }
}
